package com.yiqi.liebang.feature.news.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yiqi.liebang.R;
import com.yiqi.liebang.common.util.DateTool;
import com.yiqi.liebang.entity.bo.MessageBo;
import com.yiqi.liebang.entity.bo.QuestionBo;

import static com.yiqi.liebang.common.util.DateTool.DEFAULT_NYRSF;

public class SysMsgAdapter extends BaseQuickAdapter<MessageBo,BaseViewHolder> {
    public SysMsgAdapter() {
        super(R.layout.item_push_msg);
    }

    @Override
    protected void convert(BaseViewHolder helper, MessageBo item) {
        helper.setText(R.id.tv_msg_title,item.getContent())
                .setText(R.id.tv_msg_date, DateTool.milliseconds2String(item.getCreateTime(),DEFAULT_NYRSF));

    }
}
